package com.alibaba.basic.constant;

//系统常量
public class BaseConstants {
    //店铺状态
    public class Shop{
        public static final int STATE_WAIT_AUTID = 1; //待审核
        public static final int STATE_WAIT_ACTIVE = 2; //审核通过 待激活
        public static final int STATE_ACTIVE_SUCCESS = 3; //激活成功
        public static final int STATE_REJECT_AUTID = 4; //驳回
    }

    //员工状态
    public class Employee{
        public static final int STATE_NORMAL = 1; //正常
        public static final int STATE_LOCK = 2; //锁定
        public static final int STATE_LOGOUT = 3;//注销
    }

    //注册相关的常量类(业务键 用: 做分割 方便后面相关业务取值)
    public class VerifyCodeConstant{
        //用于拼接手机号的业务键 拼接手机号后获取redis中手机验证码 业务键针对注册账户时使用
        public static  final  String BUSINESS_REGISTER_KEY = "register:";
        public static  final  String BUSINESS_LOGIN_KEY = "login:";
        //针对绑定账号时使用
        public static  final  String BUSINESS_BINDER_PREFIX = "binder:";
    }

    public class WeChatConstants{

        public static final String APPID = "wxd853562a0548a7d0";

        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

        //通过code获取token和openid的请求
        public static final String GET_ACK_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        //通过token和openid获取用户的信息
        public static final String GET_USER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    }

}
